package com.burstly.lib.component.networkcomponent.admob;

import android.content.Context;
import android.content.pm.PackageManager.NameNotFoundException;
import com.burstly.lib.component.IBurstlyAdaptor;
import com.burstly.lib.component.networkcomponent.AbstractAdaptorFactory;
import com.burstly.lib.util.ManifestValidator;
import com.burstly.lib.util.ManifestValidator.ValidationResults;
import java.util.Arrays;
import java.util.List;

public class AdmobAdaptorFactory extends AbstractAdaptorFactory
{
  private static final List<String> ADMOB_MANDATORY_ACTIVITIES = Arrays.asList(new String[] { "com.google.ads.AdActivity" });
  private static final List<String> ADMOB_MANDATORY_PERMISSIONS = Arrays.asList(new String[] { "android.permission.INTERNET", "android.permission.ACCESS_NETWORK_STATE" });
  private static final List<String> ADMOB_OPTIONAL_PERMISSIONS = Arrays.asList(new Object[0]);
  private static final String FULL_CLASS_NAME = "com.google.ads.Ad";

  public AdmobAdaptorFactory()
  {
    super("com.google.ads.Ad", AdmobAdaptorFactory.class.getSimpleName());
  }

  protected IBurstlyAdaptor createInstance(Context paramContext, String paramString)
  {
    return new AdmobAdaptor(paramContext, paramString);
  }

  public ManifestValidator.ValidationResults validateManifest()
    throws PackageManager.NameNotFoundException
  {
    ManifestValidator.ValidationResults localValidationResults = ManifestValidator.customValidate(ADMOB_MANDATORY_ACTIVITIES, ADMOB_MANDATORY_PERMISSIONS, ADMOB_OPTIONAL_PERMISSIONS);
    localValidationResults.setNetworkName("admob");
    return localValidationResults;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.component.networkcomponent.admob.AdmobAdaptorFactory
 * JD-Core Version:    0.6.2
 */